package com.itheima.ticket3;

public class Demo01 {

    public static void main(String[] args) {
        Ticket yuan = new Ticket();

        Thread thread1 = new Thread(yuan);
        Thread thread2 = new Thread(yuan);
        Thread thread3 = new Thread(yuan);
        thread1.setName("售票员1");
        thread2.setName("售票员2");
        thread3.setName("售票员3");


        thread1.start();
        thread2.start();
        thread3.start();


    }
}
